package ooday01;

public class ConDemo {
    public static void main(String[] args) {
//        Student zs=new Student();
//        Student ls=new Student("提升",10);
//        Student ww=new Student("旺旺",16,
//                "提升","挺好");
//        zs.sayHi();
//        ls.sayHi();
//        ww.sayHi();
        /* String brand;
    String color;
    double price;
    void start() {
        System.out.println(brand + "牌子的" + color + "颜色的" + price + "块钱的车启动了");
    }
    void run() {
        System.out.println(brand + "牌子的" + color + "颜色的" + price + "块钱的车开始跑了");
    }
    void stop() {
        System.out.println(brand + "牌子的" + color + "颜色的" + price + "块钱的车停止了");
    }
    Car() {
    }
    Car(String brand, String color, Double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;

         */
        Car oooo=new Car();
        oooo.brand="劳斯莱斯";
        oooo.color="金色";
        oooo.price=100000.00;
        Car oooi=new Car("宝马","绿色",600000.0);

        oooo.start();
        oooo.run();
        oooo.stop();

        oooi.start();
        oooi.run();
        oooi.stop();



    }


}
